/*
 * @Author: your name
 * @Date: 2022-03-02 14:12:26
 * @LastEditTime: 2022-03-02 14:17:01
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \JS\day04\3-遍历对象.js
 */
var obj={
    name:'jack',
    age :13,
    gender:'男'

} 
//shiyo使用 for  in 遍历对象
for(var key in obj){
    console.log(key,obj[key],'遍历对象');
}
 var arr=[1,2,3,4,5]
 for(var index in arr){
     console.log(index,arr[index],'遍历数组');
 }